<?php
class widget_category extends CWidget {
  public function run() {
    $categories = Category::model()->getCategories();        
    $this->render('widget_category', array(
      'categories' => $categories
    ));
   // $this->render('widget_category');
  }
}
?>